<?php
if($_GET['page'] == "administrator-create") $form_action = "create";
else if($_GET['page'] == "administrator-edit") $form_action = "edit&idMitarbeiter=" . $idMitarbeiter;
?>
<form action="index.php?page=administrator-<?=$form_action?>" method="POST">
<div class="form1">

	<!-- 2 columns -->
	<div class="form1-2cols">
		
		<!-- FORM-HEADLINE -->
		<div class="form1-headline">Kontaktdaten</div>
		<!-- FORM-HEADLINE END -->
		
		<!-- ########################################################## -->
		<!-- Form element wrap -->
		<div class="form1-input-wrap">
			<div class="form1-label">Vorname</div>
			<div class="form1-input"><input type="text" name="vorname" value="<?=$vorname?>" /></div>
    		<!-- Clear Div -->
    		<div class="clear"></div>
    		<!-- Clear Div End -->
		</div>
		<!-- Form element wrap end -->
		
		<!-- Form element wrap -->
		<div class="form1-input-wrap">
			<div class="form1-label">Nachname</div>
			<div class="form1-input"><input type="text" name="name" value="<?=$name?>"/></div>
    		<!-- Clear Div -->
    		<div class="clear"></div>
    		<!-- Clear Div End -->
		</div>
		<!-- Form element wrap end -->
		
		<!-- Clear Div -->
		<div class="clear"></div>
		<!-- Clear Div End -->
		<!-- ########################################################## -->
		
		<!-- ########################################################## -->
		<!-- Form element wrap -->
		<div class="form1-input-wrap">
			<div class="form1-label">E-Mail</div>
			<div class="form1-input"><input type="text" name="e-mail" value="<?=$email?>" /></div>
    		<!-- Clear Div -->
    		<div class="clear"></div>
    		<!-- Clear Div End -->
		</div>
		<!-- Form element wrap end -->
		
		<!-- Form element wrap -->
		<div class="form1-input-wrap">
                    <?php
                    if($_GET['page'] == 'administrator-create')
                    {
                    ?>
			<div class="form1-label">&nbsp;</div>
			<div class="form1-input">&nbsp;</div>
                    <?php
                    } else {
                    ?>
                        <div class="form1-label">Benutzername</div>
			<div class="form1-input"><input type="text" name="benutzername" value="<?=$benutzername?>" readonly /></div>
                    <?php
                    }
                    ?>
                    
    		<!-- Clear Div -->
    		<div class="clear"></div>
    		<!-- Clear Div End -->
		</div>
		<!-- Form element wrap end -->
		
		<!-- Clear Div -->
		<div class="clear"></div>
		<!-- Clear Div End -->
		<!-- ########################################################## -->
		
		<!-- Zugehoerigkeit -->
		<?php //include("module/job/job.php"); ?>
		<!-- Zugehoerigkeit Ende -->
		
		<!-- Form-Button -->
		<div class="form1-button"><input type="button" name="cancel" value="Abbrechen" /></div>
		<!-- Form-Button Ende -->
		
		<!-- Form-Button -->
		<div class="form1-button"><input type="submit" name="earmarkAdmin" value="zur Freigabe speichern" /></div>
		<!-- Form-Button Ende -->
		

		
	</div>
	<!-- 2 columns end -->
	
</div>
</form>
<script type="text/javascript">
$("input[name=cancel]").click( function() {
	var con = confirm("Wollen Sie wirklich diese Maske verlassen?");
	if(con) {
		window.location.href = "index.php?page=administrator-view";
	}
});
</script>
